# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-test-mockobject
pkgver=1.20200122
pkgrel=1
pkgdesc="Perl extension for emulating troublesome interfaces "
arch=('any')
url="https://search.cpan.org/dist/Test-MockObject"
license=('GPL' 'PerlArtistic')
depends=('perl-universal-can>=1.11' 'perl-universal-isa>=0.06')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/C/CH/CHROMATIC/Test-MockObject-$pkgver.tar.gz)
sha256sums=('2b7f80da87f5a6fe0360d9ee521051053017442c3a26e85db68dfac9f8307623')

build() {
  cd  "$srcdir"/Test-MockObject-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Test-MockObject-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
